//
//  TouchImage.h
//  NumLot
//
//  Created by luotao on 12-8-12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol ViewTouched

- (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event withView:(UIView *)target;

- (void) touchesMoved:(NSSet *) touches withEvent: (UIEvent *) event withView:(UIView *)target;

- (void) touchesEnded:(NSSet *) touches withEvent: (UIEvent *) event withView:(UIView *)target;

@end


@interface TouchImage : UIImageView {
	id  eventCallback;
	int touchCount;
	SEL touchBegin;
	SEL touchMoved;
	SEL touchEnd;
	
	float startX;
	float currentX;
}

@property(nonatomic,assign)SEL touchBegin;

@property(nonatomic,assign)SEL touchMoved;

@property(nonatomic,assign)SEL touchEnd;

@property(nonatomic,retain)id eventCallback;

@property(nonatomic,readonly)int touchCount;

@property(nonatomic,readonly)float startX;

@property(nonatomic,assign)float currentX;

@end
